/*
 * @Description: 
 * @Author: paddies
 * @Date: 2024-06-01 13:20:02
 * @LastEditors: paddies
 * @LastEditTime: 2024-08-27 12:45:07
 * @FilePath: /shared_components/lib/luntai-components/login-panel/state.dart
 */
import 'dart:async';

import 'package:get/get.dart';

class LoginPanelPageState {
  var t = ''.obs;

  // 当前激活 tab
  var activeTab = 1.obs;
  var tabList = [
    {"label": "账号注册"},
    {"label": "密码登录"},
    {"label": "忘记密码"}
  ].obs;

  var requestBaseUrl = "";

  // 密码的登录板块
  var loginPhone = "".obs;
  var loginPassword = "".obs;

  // 登录方式 password:密码登录  code:短信验证码登录
  var loginType = "password".obs;
  // 账号登录密码
  var userPassword = "".obs;
  // 登录手机号号
  var phone = "".obs;
  // 短信验证码
  var code = "".obs;
  // 获取验证码等待
  var waiting = false.obs;
  // 是否已阅
  var isRead = false.obs;
  // 验证码按钮文字
  var waitTitle = "发送验证码".obs;
  // 定时器
  Timer? loop;

  // 忘记密码板块
  var findPhone = "".obs;
  var findCode = "".obs;
  var findNewPassword = "".obs;
  var findAgainNewPassword = "".obs;
  var findWaitTitle = "发送验证码".obs;
  var findWaiting = false.obs;
  Timer? findLoop;

  // 注册账号板块
  var registerPhone = "".obs;
  var registerCode = "".obs;
  var registerPassword = "".obs;
  var registerAgainPassword = "".obs;
  var registerInviteCode = "".obs;
  var registerWaitTitle = "发送验证码".obs;
  var registerWaiting = false.obs;
  var registerIdCard = "".obs;
  //身份证号
  var registerIdNumber = "".obs;
  var registerIdCardImage = [].obs;
  //身份证正反面
  var registerIdNumberImages = [].obs;
  var registerStoreImageUrl = [].obs;
  var registerLegalUser = ''.obs;
  //法人名称
  var registerUserName = ''.obs;
  var registerStoreAddr = ''.obs;
  //公司/店面地址
  var registerAddress = ''.obs;
  var registerStoreName = ''.obs;
  var registerX = ''.obs;
  var registerY = ''.obs;
  var registerBusinessCertificateFrontUrl = [].obs;
  var registerBusinessCertificateReverseUrl = [].obs;
  var registerCertificateCode = ''.obs;
  var registerSupplierName = ''.obs;
  //营业执照招照片/开户许可证/一般纳税人
  var registerBusinessImages = [].obs;
  //品牌证书/代理证明
  var registerCertImages = [].obs;

  //行驶证/行驶证/流动服务车照片
  var registerDriveImages = [].obs;
  //车牌
  var registerCarNumber = "".obs;
  //驾驶证姓名
  var registerDriverName = "".obs;
  //驾驶证照片
  var registerCarCertImages = [].obs;
  Timer? registerLoop;
}
